#ifndef SERVERCONFIG_H
#define SERVERCONFIG_H

#include <QObject>

/**
 * 配置类
 * @brief The ServerConfig class
 */
class ServerConfig : public QObject
{
    Q_OBJECT
public:
    explicit ServerConfig(QObject *parent);
    /**
     * 设置端口
     * @brief setPort
     * @param port
     */
    void setPort(uint16_t port);
    /**
     * 获取端口
     * @brief getPort
     * @return
     */
    uint16_t getPort();
signals:

public slots:
private:
    //端口 无符号16位 默认
    uint16_t port = 8088;

};

#endif // SERVERCONFIG_H
